/*
 * @Descripttion: 
 * @version: 
 * @Author: ChenXiang
 * @Date: 2021-10-27 14:17:30
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-11-10 14:44:23
 */
import React from "react";
import useSwitch from "@/common/hooks/dom/usePortalToggle";
// import Mask from "@/components/mobile/Mask";
import "./index.scss";

export default (props: any) => {
  const demo = useSwitch(true);

  return (
    <div className="bg">
      {/* <Mask {...demo}>
        <button
          onClick={() => {
            demo.setVisible(false);
          }}
        >
          正常取消
        </button>
        <button
          onClick={() => {
            setTimeout(() => {
              demo.setVisible(false);
            }, 4000);
          }}
        >
          异步取消
        </button>
      </Mask>

      <button
        onClick={() => {
          demo.setOpen();
        }}
      >
        显示
      </button> */}
    </div>
  );
};
